<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>管理员回复</title>
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
</head>

<body>
<html:form method="post" action="/others/usermsgManage">
<input type="hidden" name="method" value="update"/>
	<input type="hidden" name="type" value="${type}"/>
	<table align="center" width="600px">
	    <logic:present name="usermsg">
	    <input type="hidden" name="usermsg.id" value="${usermsg.id}"/>
		</logic:present>
	    <tr>
	    	<TH colspan="2" height="25px">管理员回复</TH>
	    </tr>
	    <tr>
	    	<td class="td_01">用户名：</td>
	    	<td class="td_04">${usermsg.username}</td>
	    </tr>
		<tr>
	    	<td class="td_01">内&nbsp;&nbsp;&nbsp;&nbsp;容：</td>
	    	<td class="td_04">
	    	${usermsg.content}
			</td>
	    </tr>
	    <tr>
	    	<td class="td_01">回&nbsp;&nbsp;&nbsp;&nbsp;复：</td>
	    	<td class="td_04">
	    	<textarea name="usermsg.reply" cols="55" rows="10" id="content">
	    	${usermsg.reply}
	    	</textarea>
			</td>
	    </tr>
        <tr>
        	<td colspan="2" class="td_01">
            	<input type="submit" class="btn" value="提交"/>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" class="btn" value="重置" /> 
            </td>
        </tr>
</table>
</html:form>
<script type="text/javascript">
   //获得内容控件
   var content=document.getElementById("content");
   content.onchange=function(){
       var str=content.value;
       str=bb(aa(str));
       content.value=str;
   }
  function aa(str){
        return   str.replace(/^[\s]+/,"");   
  }     
  function bb(str){
        return   str.replace(/[\s]+$/,"");
  }  
	</script>
</body>
</html>
